package ij.umasuo;

import ij.IJ;

import java.awt.Image;
import java.awt.image.ImageProducer;
import java.net.URL;

/**
 * this class used to manager the images
 * @author liuquan
 * @date 2013-08-15
 * @version 1.0
 *
 */
public class MyResource {

	private static Image greenButtonBG = null;
	private static Image redButtonBG = null;
	private static Image yellowButtonBG = null;
	private static Image greenButtonBG140 = null;
	private static Image redButtonBG140 = null;
	private static Image yellowButtonBG140 = null;
	private static Image acq_order_figure = null;
	private static Image application_view_list = null;
	private static Image arrow_down = null;
	private static Image arrow_inout = null;
	private static Image arrow_out = null;
	private static Image arrow_refresh = null;
	private static Image arrow_right = null;
	private static Image arrow_up = null;
	private static Image asterisk_orange = null;
	private static Image C = null;
	private static Image camera_go = null;
	private static Image camera_plus_arrow = null;
	private static Image camera = null;
	private static Image cancel = null;
	private static Image chart_curve = null;
	private static Image cog = null;
	private static Image contrast = null;
	private static Image control_pause = null;
	private static Image control_play_blue = null;
	private static Image control_stop_blue = null;
	private static Image cross = null;
	private static Image delete = null;
	private static Image disk = null;
	private static Image disk2 = null;
	private static Image empty = null;
	private static Image film_delete = null;
	private static Image film_go = null;
	private static Image film = null;
	private static Image find = null;
	private static Image flag_green = null;
	private static Image folder = null;
	private static Image microscope = null;
	private static Image minus = null;
	private static Image page_find = null;
	private static Image page_save = null;
	private static Image page = null;
	private static Image plus = null;
	private static Image R = null;
	private static Image resultset_next = null;
	private static Image script = null;
	private static Image shape_handles = null;
	private static Image snapAppend = null;
	private static Image splash = null;
	private static Image table = null;
	private static Image wrench_orange = null;
	private static Image zoom_in = null;
	private static Image zoom_out = null;
	private static Image zoom = null;
	
	static{
		try{
			URL url;
			url = IJ.getInstance().getClass().getResource("/res/green_button.png");
			greenButtonBG = IJ.getInstance().createImage((ImageProducer)url.getContent());
			url = IJ.getInstance().getClass().getResource("/res/red_button.png");
			redButtonBG = IJ.getInstance().createImage((ImageProducer)url.getContent());
			url = IJ.getInstance().getClass().getResource("/res/yellow_button.png");
			yellowButtonBG = IJ.getInstance().createImage((ImageProducer)url.getContent());
			url = IJ.getInstance().getClass().getResource("/res/green_button_140.png");
			greenButtonBG140 = IJ.getInstance().createImage((ImageProducer)url.getContent());
			url = IJ.getInstance().getClass().getResource("/res/red_button_140.png");
			redButtonBG140 = IJ.getInstance().createImage((ImageProducer)url.getContent());
			url = IJ.getInstance().getClass().getResource("/res/yellow_button_140.png");
			yellowButtonBG140 = IJ.getInstance().createImage((ImageProducer)url.getContent());
			url = IJ.getInstance().getClass().getResource("/res/acq_order_figure.png");
			acq_order_figure = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/application_view_list.png");
			application_view_list = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/arrow_down.png");
			arrow_down = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/arrow_inout.png");
			arrow_inout = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/arrow_out.png");
			arrow_out = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/arrow_refresh.png");
			arrow_refresh = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/arrow_right.png");
			arrow_right = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/arrow_up.png");
			arrow_up = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/asterisk_orange.png");
			asterisk_orange = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/C.png");
			C = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/camera_go.png");
			camera_go = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/camera_plus_arrow.png");
			camera_plus_arrow = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/camera.png");
			camera = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/cancel.png");
			cancel = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/chart_curve.png");
			chart_curve = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/cog.png");
			cog = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/contrast.png");
			contrast = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/control_pause.png");
			control_pause = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/control_play_blue.png");
			control_play_blue = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/control_stop_blue.png");
			control_stop_blue = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/cross.png");
			cross = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/delete.png");
			delete = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/disk.png");
			disk = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/disk2.png");
			disk2 = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/empty.png");
			empty = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/film_delete.png");
			film_delete = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/film_go.png");
			film_go = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/film.png");
			film = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/find.png");
			find = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/flag_green.png");
			flag_green = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/folder.png");
			folder = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/microscope.png");
			microscope = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/minus.png");
			minus = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/page_find.png");
			page_find = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/page_save.png");
			page_save = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/page.png");
			page = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/plus.png");
			plus = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/R.png");
			R = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/resultset_next.png");
			resultset_next = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/script.png");
			script = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/shape_handles.png");
			shape_handles = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/snapAppend.png");
			snapAppend = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/splash.png");
			splash = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/table.png");
			table = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/wrench_orange.png");
			wrench_orange = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/zoom_in.png");
			zoom_in = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/zoom_out.png");
			zoom_out = IJ.getInstance().createImage((ImageProducer)url.getContent());;
			url = IJ.getInstance().getClass().getResource("/res/zoom.png");
			zoom = IJ.getInstance().createImage((ImageProducer)url.getContent());;
		}catch(Exception e){
			
		}
	}

	public static Image getGreenButtonBG() {
		return greenButtonBG;
	}

	public static void setGreenButtonBG(Image greenButtonBG) {
		MyResource.greenButtonBG = greenButtonBG;
	}

	public static Image getRedButtonBG() {
		return redButtonBG;
	}

	public static void setRedButtonBG(Image redButtonBG) {
		MyResource.redButtonBG = redButtonBG;
	}

	public static Image getYellowButtonBG() {
		return yellowButtonBG;
	}

	public static void setYellowButtonBG(Image yellowButtonBG) {
		MyResource.yellowButtonBG = yellowButtonBG;
	}

	public static Image getGreenButtonBG140() {
		return greenButtonBG140;
	}

	public static void setGreenButtonBG140(Image greenButtonBG140) {
		MyResource.greenButtonBG140 = greenButtonBG140;
	}

	public static Image getRedButtonBG140() {
		return redButtonBG140;
	}

	public static void setRedButtonBG140(Image redButtonBG140) {
		MyResource.redButtonBG140 = redButtonBG140;
	}

	public static Image getYellowButtonBG140() {
		return yellowButtonBG140;
	}

	public static void setYellowButtonBG140(Image yellowButtonBG140) {
		MyResource.yellowButtonBG140 = yellowButtonBG140;
	}

	public static Image getAcq_order_figure() {
		return acq_order_figure;
	}

	public static Image getApplication_view_list() {
		return application_view_list;
	}

	public static Image getArrow_down() {
		return arrow_down;
	}

	public static Image getArrow_inout() {
		return arrow_inout;
	}

	public static Image getArrow_out() {
		return arrow_out;
	}

	public static Image getArrow_refresh() {
		return arrow_refresh;
	}

	public static Image getArrow_right() {
		return arrow_right;
	}

	public static Image getArrow_up() {
		return arrow_up;
	}

	public static Image getAsterisk_orange() {
		return asterisk_orange;
	}

	public static Image getC() {
		return C;
	}

	public static Image getCamera_go() {
		return camera_go;
	}

	public static Image getCamera_plus_arrow() {
		return camera_plus_arrow;
	}

	public static Image getCamera() {
		return camera;
	}

	public static Image getCancel() {
		return cancel;
	}

	public static Image getChart_curve() {
		return chart_curve;
	}

	public static Image getCog() {
		return cog;
	}

	public static Image getContrast() {
		return contrast;
	}

	public static Image getControl_pause() {
		return control_pause;
	}

	public static Image getControl_play_blue() {
		return control_play_blue;
	}

	public static Image getControl_stop_blue() {
		return control_stop_blue;
	}

	public static Image getCross() {
		return cross;
	}

	public static Image getDelete() {
		return delete;
	}

	public static Image getDisk() {
		return disk;
	}

	public static Image getDisk2() {
		return disk2;
	}

	public static Image getEmpty() {
		return empty;
	}

	public static Image getFilm_delete() {
		return film_delete;
	}

	public static Image getFilm_go() {
		return film_go;
	}

	public static Image getFilm() {
		return film;
	}

	public static Image getFind() {
		return find;
	}

	public static Image getFlag_green() {
		return flag_green;
	}

	public static Image getFolder() {
		return folder;
	}

	public static Image getMicroscope() {
		return microscope;
	}

	public static Image getMinus() {
		return minus;
	}

	public static Image getPage_find() {
		return page_find;
	}

	public static Image getPage_save() {
		return page_save;
	}

	public static Image getPage() {
		return page;
	}

	public static Image getPlus() {
		return plus;
	}

	public static Image getR() {
		return R;
	}

	public static Image getResultset_next() {
		return resultset_next;
	}

	public static Image getScript() {
		return script;
	}

	public static Image getShape_handles() {
		return shape_handles;
	}

	public static Image getSnapAppend() {
		return snapAppend;
	}

	public static Image getSplash() {
		return splash;
	}

	public static Image getTable() {
		return table;
	}

	public static Image getWrench_orange() {
		return wrench_orange;
	}

	public static Image getZoom_in() {
		return zoom_in;
	}

	public static Image getZoom_out() {
		return zoom_out;
	}

	public static Image getZoom() {
		return zoom;
	}
	
}
